PaymentPlugins\WooCommerce\PPCP\Payments\Gateways\PayPalGateway A

Total Complexity 64
Dependencies 8
Dependents 3
Total lines 712
Lines of code 621
Logical lines of code 100
Comment lines 32
Methods 25
Properties 5

Methods 25

Method Rating Maintainability Complexity Lines of code
init_form_fields()
C
20
7 339
get_product_form_fields()
A
44 6 48
get_payment_method_data()
S
42 5 55
is_section_enabled()
S
55 7 18
validate_paypal_order()
S
56 4 17
add_query_params()
S
61 4 13
get_checkout_script_handles()
S
62 4 12
get_payment_section_options()
S
58 3 15
is_show_popup_icon_enabled()
S
71 3 5
get_admin_script_dependencies()
S
57 1 17
get_express_checkout_script_handles()
S
67 2 8
get_cart_script_handles()
S
67 2 8
get_minicart_script_handles()
S
67 2 8
get_product_script_handles()
S
67 2 8
get_order_button_text()
S
68 2 7
__construct()
S
65 1 8
init_hooks()
S
74 1 4
express_checkout_fields()
S
83 1 5
get_funding_types()
S
79 1 3
is_product_section_enabled()
S
65 1 9
is_cart_section_enabled()
S
80 1 3
is_express_section_enabled()
S
80 1 3
validate_fields()
S
91 1 2
is_place_order_button()
S
78 1 3
is_immediate_payment_required()
S
78 1 3